import { createApp } from 'vue'
import { Button, Form, Field, CellGroup, NavBar, Tabbar, TabbarItem, Image, ContactList, Toast, Icon, ActionSheet } from 'vant'
import '@vant/touch-emulator'
import 'vant/lib/index.css'
import './style.css'
import App from './App.vue'
import router from './router'

const app = createApp(App)

// 注册Vant组件
app.use(Button)
   .use(Form)
   .use(Field)
   .use(CellGroup)
   .use(NavBar)
   .use(Tabbar)
   .use(TabbarItem)
   .use(Image)
   .use(ContactList)
   .use(Toast)
   .use(Icon)
   .use(router)
   .use(ActionSheet)

app.mount('#app')
